package bb.lanxing.model.bean;

import android.os.Parcel;
import android.os.Parcelable;
import com.alibaba.fastjson.annotation.JSONField;
import com.umeng.analytics.pro.d;

public class PlaceDiscount implements Parcelable {
    public static final Parcelable.Creator<PlaceDiscount> CREATOR = new Parcelable.Creator<PlaceDiscount>() {

        public PlaceDiscount createFromParcel(Parcel parcel) {
            return new PlaceDiscount(parcel);
        }


        public PlaceDiscount[] newArray(int i) {
            return new PlaceDiscount[i];
        }
    };
    public static final int DISCOUBT_DIS = 2;
    public static final int DISCOUBT_FREE = 1;
    public static final int DISCOUBT_LESSEN = 3;
    @JSONField(name = "create_time")
    private long bikePlaceCouponCreateTime;
    @JSONField(name = d.p)
    private long bikePlaceCouponStartTime;
    @JSONField(name = "acoupon_class")
    private int category;
    @JSONField(name = "title")
    private String describe;
    @JSONField(name = "tag")
    private int iconUrl;
    @JSONField(name = "acouponid")
    private int id;

    @Override
    public int describeContents() {
        return 0;
    }

    public PlaceDiscount() {
    }

    protected PlaceDiscount(Parcel parcel) {
        this.id = parcel.readInt();
        this.category = parcel.readInt();
        this.iconUrl = parcel.readInt();
        this.describe = parcel.readString();
        this.bikePlaceCouponCreateTime = parcel.readLong();
        this.bikePlaceCouponStartTime = parcel.readLong();
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.id);
        parcel.writeInt(this.category);
        parcel.writeInt(this.iconUrl);
        parcel.writeString(this.describe);
        parcel.writeLong(this.bikePlaceCouponCreateTime);
        parcel.writeLong(this.bikePlaceCouponStartTime);
    }

    public int getCategory() {
        return this.category;
    }

    public void setCategory(int i) {
        this.category = i;
    }

    public int getId() {
        return this.id;
    }

    public void setId(int i) {
        this.id = i;
    }

    public int getIconUrl() {
        return this.iconUrl;
    }

    public void setIconUrl(int i) {
        this.iconUrl = i;
    }

    public String getDescribe() {
        return this.describe;
    }

    public void setDescribe(String str) {
        this.describe = str;
    }

    public long getBikePlaceCouponCreateTime() {
        return this.bikePlaceCouponCreateTime;
    }

    public void setBikePlaceCouponCreateTime(long j) {
        this.bikePlaceCouponCreateTime = j;
    }

    public long getBikePlaceCouponStartTime() {
        return this.bikePlaceCouponStartTime;
    }

    public void setBikePlaceCouponStartTime(long j) {
        this.bikePlaceCouponStartTime = j;
    }
}
